package cn.edu.scau.dormitory_management_system.service;

import cn.edu.scau.dormitory_management_system.entity.DormbuildEntity;
import cn.edu.scau.dormitory_management_system.entity.dto.StuDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;


import java.util.List;

/**
 * 
 *
 * @author wanglingfu
 * @email 1006340605@qq.com
 * @date 2021-08-02 14:35:10
 */
public interface DormbuildService extends IService<DormbuildEntity> {

    public List<DormbuildEntity> getAllBuild();

    public boolean create(DormbuildEntity dormbuildEntity);

    public boolean delete(DormbuildEntity dormbuildEntity);

    public boolean update(DormbuildEntity dormbuildEntity);

    public List<DormbuildEntity> findBuildByName(String buildName);

    public IPage<StuDTO> getStuDTO(IPage<StuDTO> page, int buildId);

    public void createList(List<DormbuildEntity> dormbuildEntities);
}

